package cn.yuan;

import cn.yuan.org.domain.Employee;
import cn.yuan.org.domain.Shop;
import cn.yuan.org.service.IEmployeeService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

public class EmployeeServiceImplTest extends BaseTest{
    @Autowired
    private IEmployeeService employeeService;
    @Test
    public void add() {
        Employee employee = new Employee();
        employee.setUsername("yhptest");
        employee.setEmail("yhp@itsource.cn");
        employee.setPhone("13330964748");
        employee.setPassword("1");
        employee.setAge(18);
        Shop shop = new Shop();
        shop.setId(27L);
        employee.setShop(shop);
        employeeService.save(employee);
    }
}
